#!/bin/bash

sed -i "s/Server=.*/Server=119.28.114.37/" /usr/local/zabbix/etc/zabbix_agentd.conf
sed -i "s/ServerActive=.*/ServerActive=119.28.114.37:10051/" /usr/local/zabbix/etc/zabbix_agentd.conf
sed -i "s/#ServerActive=.*/ServerActive=119.28.114.37:10051/" /usr/local/zabbix/etc/zabbix_agentd.conf

pkill zabbix_agentd

service zabbix_agentd start
echo "test"